package com.pachong.dao;

import com.pachong.pojo.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    /*不分页查询*/
    List<User> selectByUser(User user);
    /*分页查询*/
    List<User> selectByUserPage(User user);
    /*根据手机号查找*/
    List<User> selectByPhone(String phone);
}